package com.ifengxue.ioc.bean;

import javax.annotation.Nonnull;

/**
 * bean不存在异常
 */
public class BeanNotFoundException extends BeanException {
    public BeanNotFoundException(@Nonnull Class<?> clazz) {
        super("Bean " + clazz.getName() + " 不存在");
    }

    public BeanNotFoundException(@Nonnull String name) {
        super("Bean " + name + " 不存在");
    }
}
